using System;
using Codeflows.Extensions.Tracking;
using Codeflows.Results;
using Codeflows.Tracking;

namespace Codeflows.Dispatch.ResultHandlers
{
    abstract class ResultHandlerBase
    {   
        public void Execute(Guid dispatcherId, CodeflowInstance codeflowInstance, Result result)
        {
            RunHandler(codeflowInstance, result);            
        }

        protected abstract void RunHandler(CodeflowInstance instance, Result result);

        public virtual bool CanContinueDispatchLoop { get { return false; } }
    }
}